import Discover from "../pages/discover"
import Friend from "../pages/friend"
import { useRoutes } from "react-router-dom"
import Toplist from "../pages/discover/Toplist"
import Playlist from "../pages/discover/Playlist"

const routes = [
    {
        path: '/discover',
        element: <Discover />,
        children: [
            {
                path: 'toplist',
                element: <Toplist />
            },
            {
                path: 'playlist',
                element: <Playlist />
            }
        ]
    },
    {
        path: "/friend",
        element: <Friend />
    }
]




// const BaseRouter = () => {
//     let element = useRoutes(routes)
//     return element
// }

export default routes